﻿using System;
using System.Linq.Expressions;
using System.Web.Mvc;

namespace BoneSystem.Extensions.Form
{
    public static class Form
    {
        public static FormLayout<T,TProperty> BsForm<T, TProperty>(this HtmlHelper<T> htmlHelper,
            Expression<Func<T, TProperty>> expression,FormSettings formSettings)
        {
            return new FormLayout<T, TProperty>()
            {
                Settings=formSettings,
                HtmlHelper = htmlHelper
            };
        }
    }
}
